package com.qzw.provider;

import com.qzw.rabbitmq.common.BaseExchangeEnum;
import com.qzw.rabbitmq.common.BaseQueueEnum;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：quziwei
 * @date ：Created in 2020/6/10 1:14 下午
 * @description：
 */
@RestController
@Slf4j
public class Controller {

    @Autowired
    private QuqueMessageService ququeMessageService;

    @RequestMapping
    public void send() throws Exception {
        log.info("发送消息给消费者");
        ququeMessageService.send("111111", BaseExchangeEnum.USER_REGISTER, BaseQueueEnum.USER_REGISTER);

    }
}
